module.exports = {
  pluginOptions: {
    prerenderSpa: {
      registry: undefined,
      renderRoutes: ["/", "/question"],
      useRenderEvent: true,
      headless: true,
      onlyProduction: true,
    },
  },
  devServer: {
    proxy: {
      "/api": {
        target: "http://localhost:8299/", //对应自己的接口
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
};
